package com.diy.sigmund.diyoauth2;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

// 扫描mapper接口，等价于在mapper接口上添加注解@Mapper
@MapperScan("com.diy.sigmund.*.mapper")
@EnableDiscoveryClient
@SpringBootApplication
// @SpringBootApplication(scanBasePackages = "com.diy.sigmund")
public class DiyOAuth2Application {

    /**
     * IDEA2021.2版本，在启动日志tab Console右侧的Actuator下的Mappings
     *
     * POST /oauth/authorize  授权码模式认证授权接口
     * GET/POST /oauth/token  获取 token 的接口
     * POST  /oauth/check_token  检查 token 合法性接口
     *
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(DiyOAuth2Application.class, args);
    }

}
